//@flow
import { UserServiceProps,initUserProps } from "./userService.state";
import { ActionProps } from "./userService.action";
import { UserServiceActionType } from "./userService.type";

export function userServiceReducer(state:UserServiceProps=initUserProps,action:ActionProps):UserServiceProps{
    switch(action.type){
        case UserServiceActionType.LOGIN_DOING:
        case UserServiceActionType.LOGIN_SUCCESS:
        case UserServiceActionType.LOGIN_FAIL:
        case UserServiceActionType.LOGOUT:
        case UserServiceActionType.UPDATE_USER_INFO:
            
        default :
            initUserProps;
    }
}